/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model.DAO;

import Model.Bean.PagoRenta;
import java.util.List;

/**
 *
 * @author sixviv
 */
public class PagoRentaDAO extends AbstracDAO<PagoRenta>{

    public PagoRenta getPagoRenta(int idInmueble){
        List<PagoRenta> pagosRenta = buscar("idInmueble = "+idInmueble, PagoRenta.class);
        if(!pagosRenta.isEmpty()){
            return pagosRenta.get(0);
        }else{
            return null;
        }
    }

}
